package com.ruoyi.admin.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息对象 t_user
 * 
 * @author 钟家兴
 * @date 2025-01-24
 */
public class UserAdmin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 账号 */
    @Excel(name = "账号")
    private String code;

    /** openId */
    @Excel(name = "openId")
    private String openId;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 性别 0-女 1-男 */
    @Excel(name = "性别 0-女 1-男")
    private Long sex;

    /** 头像 */
    @Excel(name = "头像")
    private String photo;

    /** 主页背景 */
    @Excel(name = "主页背景")
    private String backgroundImg;

    /** 封禁状态 */
    @Excel(name = "封禁状态")
    private Long ban;

    /** 注册类型 */
    @Excel(name = "注册类型")
    private Long registerType;

    /** 删除状态 0-否 1-是 */
    @Excel(name = "删除状态 0-否 1-是")
    private Long deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setAge(Long age) 
    {
        this.age = age;
    }

    public Long getAge() 
    {
        return age;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setBackgroundImg(String backgroundImg) 
    {
        this.backgroundImg = backgroundImg;
    }

    public String getBackgroundImg() 
    {
        return backgroundImg;
    }
    public void setBan(Long ban) 
    {
        this.ban = ban;
    }

    public Long getBan() 
    {
        return ban;
    }
    public void setRegisterType(Long registerType) 
    {
        this.registerType = registerType;
    }

    public Long getRegisterType() 
    {
        return registerType;
    }
    public void setDeleted(Long deleted) 
    {
        this.deleted = deleted;
    }

    public Long getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("openId", getOpenId())
            .append("nickName", getNickName())
            .append("password", getPassword())
            .append("email", getEmail())
            .append("phone", getPhone())
            .append("age", getAge())
            .append("sex", getSex())
            .append("photo", getPhoto())
            .append("backgroundImg", getBackgroundImg())
            .append("ban", getBan())
            .append("registerType", getRegisterType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .append("remark", getRemark())
            .toString();
    }
}
